package com.ph.irp.base.stockprice.dao;

import java.util.List;

import com.ph.irp.model.PBaseStockprice;

public interface StockPriceDAO {
	
	List<PBaseStockprice> getAllStockPrices()throws Throwable;
	
	PBaseStockprice getStockPriceById(Integer stockPriceId)throws Throwable;
	
	List<PBaseStockprice> getStockPriceBySupplierId(int supplierId)throws Throwable;
	
	List<PBaseStockprice> getStockPriceByMaterialId(int materialId)throws Throwable;
	
	List<PBaseStockprice> getStockPriceBySupplierIdAndMaterialId(int supplierId,int materialId)throws Throwable;
	
	List<PBaseStockprice> getStockPricesByState(int state)throws Throwable;
	
	void deleteStockPriceByIds(Object[] stockPriceIds)throws Throwable;
	
	void updateStockPrice(PBaseStockprice pbaseStockPriceModel)throws Throwable;
	
	void addStockPrice(PBaseStockprice pbaseStockPriceModel)throws Throwable;
	
	void checkStockPrice(Integer stockPriceId)throws Throwable;
	
	void uncheckStockPrice(Integer stockPriceId)throws Throwable;
	
	void conTrolPrice(int materialId,float topTip,int supplierId)throws Throwable;
	
	void conTrolPrice(int materialId,float topTip)throws Throwable;
	
	
}
